package com.esun.common.enums;

/**
 * @author John.xiao
 * @date 2021/8/13 9:33
 */
public class UserAgent {
	private static  ThreadLocal<LoginUserInfo> local = ThreadLocal.withInitial(() -> null);

	private UserAgent() {
	}

	public static void set(LoginUserInfo loginUserInfo) {
		local.set(loginUserInfo);
	}

	public static LoginUserInfo get() {
		return local.get();
	}

	public static void remove(){
		local.remove();
	}
}
